package initilization

import (
	openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client"
	"github.com/alibabacloud-go/tea/tea"
	"github.com/alibabacloud-go/vod-20170321/v3/client"
	"ksd-social-api/commons/global"
)

func InitAlipayClient() {
	/**
	 * 使用AK&SK初始化账号Client
	 * @param accessKeyId
	 * @param accessKeySecret
	 * @return Client
	 * @throws Exception
	 */
	config := &openapi.Config{
		// 必填，您的 AccessKey ID
		AccessKeyId: tea.String("LTAI5tErknbArkrQQFG4wNbj"),
		// 必填，您的 AccessKey Secret
		AccessKeySecret: tea.String("sckVLvbzH8YJvhFloJGg7uGX4DnKRp"),
	}
	// 访问的域名
	config.Endpoint = tea.String("vod.cn-shanghai.aliyuncs.com")
	global.AliPlayerClient, _ = client.NewClient(config)
}
